<?php

namespace Common\Model;

/**
 * HotelPayUsableModel.class实例模型
 * 
 * @author paddy
 * @date 2017-03-13
 */
class HotelPayUsableModel extends BaseModel {

    protected $trueTableName = 'bk_hotel_pay_usable';

    /**
     * 获取客栈开通APP的列表
     * @modify paddy 2017-03-13
     * @return array
     */
    public function getByHotelIds($ids) {
        if(empty($ids)){
            return array();
        }
        $where = array(
            'hotelentity_id' => array('in',$ids),
            'isdelete' => NOT_DELETE,
        );
        return $this->where($where)->select();
    }
    public function getInfo($hotelId) {
        $where = array(
            'hotelentity_id' => $hotelId,
            'isdelete' => NOT_DELETE,
        );
        return $this->where($where)->find();
    }
}
